//
//  YCSortTableViewCell.m
//  lianganyuchu
//
//  Created by iMac on 17/2/23.
//  Copyright © 2017年 杭州桑缇电子商务有限公司. All rights reserved.
//

#import "YCSortTableViewCell.h"

@implementation YCSortTableViewCell

- (void)awakeFromNib {
    [super awakeFromNib];
    [self.labTitle setFont:[UIFont LightFontOfSize:13]];
    [self.labTitle setTextColor:TEXT_MIDDLE];
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}
-(void)setCellSelected:(BOOL)selected
{
    if (selected) {
        [self.lineView setHidden:NO];
        [self setBackgroundColor:WHITE_COLOR];
        [self.labTitle setTextColor:MAIN_COLOR];
        [self.labTitle setFont:[UIFont LightFontOfSize:14]];
    }else{
        [self.lineView setHidden:YES];
        [self setBackgroundColor:BACK_COLOR];
        [self.labTitle setTextColor:TEXT_MIDDLE];
        [self.labTitle setFont:[UIFont LightFontOfSize:12]];
    }
}
-(void)bindWith:(ItemSortTable *)sort
{
    [self.labTitle setText:sort.title];
}

@end
